import { _decorator, Component, Node,Animation, AnimationClip } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('birdFly')
export class birdFly extends Component {
    public animComponent:Animation
    start() {
        this.animComponent = this.getComponent(Animation)
        if(this.animComponent){
            // 循环播放
            this.animComponent.getState('birdFly').repeatCount = Infinity
            this.animComponent.play('birdFly')
        }else{
            console.log('获取出错')
        }

    }

    update(deltaTime: number) {
        
    }
}


